// json-server的配置
const jsonServer = require('json-server');
const server = jsonServer.create();
const interface = require('./interface');
const middlewares = jsonServer.defaults();
server.use(middlewares);


server.use(jsonServer.router(interface));
server.listen(3000, () => { console.log('JSON Server is running......') });